package com.zhitong.ztblog.services;

import com.zhitong.ztblog.entity.Blog;
import com.zhitong.ztblog.entity.PageInfo;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;

public interface IBlogService {
    public Blog findById(int id);

    public Blog[] findAll();

    public int findBlogsNum();

    public Blog[] findByPage(PageInfo pageInfo);

    public Blog[] findByTop();

    public void updateTotle(int id);

    public Blog[] findBlogBySid(int sid,PageInfo pageInfo);

    public Blog[] findBlogByLid(int lid,PageInfo pageInfo);

    public int findBlogNumBySid(int sid);

    public void delBlogById(int id);

    public void insertBlog(Blog blog);

    public void updateBlog(Blog blog);

    public Blog[] findBlogByWord(String word,PageInfo pageInfo);

    public int findBlogNumByWord(String word);
}
